草庐IT

Running Gradle task ‘assembleDebug‘

全部标签

【Ubuntu git clone命令报错】fatal: unable to access ‘https://github.com/XXX‘: gnutls_handshake() failed:

Ubuntugitclone命令报错执行下面命令行:gitclonehttps://github.com/XXX报错:Cloninginto'XXX'...fatal:unabletoaccess'https://github.com/XXX':gnutls_handshake()failed:TheTLSconnectionwasnon-properlyterminated.解决办法:将命令中的https改为git如下:gitclonegit://github.com/XXX若出现以下错误:Cloninginto'XXX'...fatal:unabletoconnecttogithub.co

如何解决使用npm出现Cannot find module ‘XXX\node_modules\npm\bin\npm-cli.js’错误

遇到问题:用npm下载组件时出现Cannotfindmodule‘D:software\node_modules\npm\bin\npm-cli.js’问题,导致下载组件不能完成。解决方法:下载缺少的npm文件即可解决放到指定node_modules目录下即可解决。分析问题:我们找到提示路径去看发现,在node_modules下没有npm目录可以看到,存在的问题在于,无法找到npm-cli.js文件。解决方法:重装node.js,这个比较麻烦;下载npm压缩包:访问Download|Node.js(nodejs.org)https://nodejs.org/en/download下载符合自己计

【MySQL】mysqld Can‘t read dir of ‘etcmysqlconf.d‘ (Errcode 2 - No such file or directory)

有时候我们在使用Docker启动MySQL的时候会遇到启动失败,使用dockerlogs命令查看的时候发现了如下的错误日志.[ERROR][Entrypoint]:mysqldfailedwhileattemptingtocheckconfigcommandwas:mysqld--verbose--help--log-bin-index=/tmp/tmp.WHijR591XAmysqld:Can'treaddirof'/etc/mysql/conf.d/'(Errcode:2-Nosuchfileordirectory)mysqld:[ERROR]Fatalerrorindefaultshan

Added non-passive event listener to a scroll-blocking ‘touchmove‘ event....

1、问题描述 在用Chrome开发项目时,当用到滚动事件scroll、滚轮事件wheel或者移端touchstart/touchmove/touchend等事件时,Chrome可能会报以下警告2、原因        项目没有添加事件管理者’passive’,而在谷歌浏览器里面Chrome51版本以后,Chrome增加了新的事件捕获机制PassiveEventListeners,当前仅支持mousewheel/touch相关事件,目前Chrome主要利用该特性来优化页面的滑动性能3、解决办法    在项目中安装default-passice-events插件来解决//安装插件npminstall

vue3 Error on Cannot read properties of null (reading ‘insertBefore‘)报错无法正常显示,解决办法。

vue3报错Cannotreadpropertiesofnull(reading‘insertBefore’)本地启动时,页面所有操作正常,显示正常;部署到生产环境后,数据驱动DOM变化的操作会导致如下报错。Cannotreadpropertiesofnull(reading'insertBefore')这个错误,导致页面显示出现异常,无法正常显示。猜测原因模板渲染导致无法找到,可能的原因有以下三个:v-if导致:(使用v-show替换了v-if)v-for导致:数据初始化为undefined,但是在模板中有调用或者渲染。解决办法可以通过逐步排查页面的代码,注释代码,发布生产查看。试出看问题出

The ‘kotlin-android-extensions‘ Gradle plugin is no longer supported.

Android使用kotlin开发,运行报错The'kotlin-android-extensions'Gradlepluginisnolongersupported.Pleaseusethismigrationguide(https://goo.gle/kotlin-android-extensions-deprecation)tostartworkingwithViewBinding(https://developer.android.com/topic/libraries/view-binding)andthe'kotlin-parcelize'plugin.出现这个提示是因为’kotl

解决报错We‘re sorry but XXXXX doesn‘t work properly without JavaScript enable it to continue

创建前端页面,vue打包到线上热更新时经常遇到的问题:We’resorrybutXXXXXdoesn’tworkproperlywithoutJavaScriptenableittocontinue解决办法:一般是配置Vue的路由Router里的index.js有引入代码编写错误导致。修改即可。如果功能没有受到影响,那么这个语句不用管他,因为这是个noscript标签,而这个原因是在控制台的response里,通过preview查看,这个功能里是不具备js的功能的,因为这里还没有渲染,仅仅只是response返回的信息的预览,这只是另一种参考方式。

mysql报错解决方式:1449 - The user specified as a definer (‘root‘@‘%‘) does not exist

创建视图报错:1449-theuserspecifiedasadefiner(ywsd'0"%"doesnotexist从一个数据库数据迁移到本地localhost程序在调用到数据库的视图时报错,直接在数据库中打开视图时也报错,类似:mysql1449:Theuserspecifiedasadefiner(‘root’@‘%’)doesnotexist经查询是权限问题,解决办法:运行sql:1、grantallprivilegeson*.*to'root'@'%'identifiedby".";2、flushprivileges;即可解决!源地址的解释:权限问题,授权给root所有sql权限1

【解决】MissingReferenceException: The object of type ‘GameObject‘ has been destroyed...

开发平台:Unity编程平台:VisualStudio2020以上使用语言:C# 问题描述描述英文MissingReferenceException:Theobjectoftype‘GameObject’hasbeendestroyed。中文丢失的偏好异常:GameObject类型的对象已经被销毁  备注:这是一个Warning类型的错误警告,对项目稳定性基于使用情况给予可忽略/有影响两种BUFF。 解决方案:示例publicvoidAwake(){EventDispacther.AddListener($"{MessageCommand.Hello}",OnResponsedMessage)

docker报Unable to find image ‘image-name:tag‘ locallydocker: Error response from daemon: pull acces

昨天在使用Docker时,遇到拉取镜像失败的问题。其中一个错误信息是"Unabletofindimage‘image-name:tag’locallydocker:Errorresponsefromdaemon:pullaccessdeniedforimage-name,repositorydoesnotexistormayrequire‘dockerlogin’:denied:requestedaccesstotheresourceisdenied"。今天我将分享如何解决此问题的。步骤一:检查镜像名称和标签首先,需要确保要拉取的镜像名称和标签是正确的。使用下面的命令检查镜像名称和标签:doc